projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23c5f11
)
cssselector: Reserve more bits for enum
author
Benjamin Otte
<otte@redhat.com>
Thu, 11 Dec 2014 11:45:20 +0000
(12:45 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 11 Dec 2014 11:47:54 +0000
(12:47 +0100)
Apparently some compilers make enums an int and then we get negative
values.
https://bugzilla.gnome.org/show_bug.cgi?id=741375
gtk/gtkcssselector.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssselector.c
b/gtk/gtkcssselector.c
index ec49884c8fd3cc0b496800e8c0042c059306dbad..9d0d336ae640fa278b379a2c45c0aa4926184a65 100644
(file)
--- a/
gtk/gtkcssselector.c
+++ b/
gtk/gtkcssselector.c
@@
-71,7
+71,7
@@
typedef enum {
POSITION_ONLY,
POSITION_SORTED
} PositionType;
-#define POSITION_TYPE_BITS
2
+#define POSITION_TYPE_BITS
4
#define POSITION_NUMBER_BITS ((sizeof (gpointer) * 8 - POSITION_TYPE_BITS) / 2)
union _GtkCssSelector